package manager.com.ithei.edu.info.manager.controller;

import manager.com.ithei.edu.info.manager.domain.Teacher;
import manager.com.ithei.edu.info.manager.service.TeacherService;

import java.text.ParseException;
import java.util.Scanner;

public class TeacherController extends FatherTeacherController {
    private Scanner sc = new Scanner(System.in);
    private TeacherService teacherService = new TeacherService();

    //用户录入数据
    Teacher inputStudentInfo(String id) throws ParseException {
        Teacher teacher = new Teacher();
        teacher.setSid(id);
        System.out.println("请输入姓名:");
        teacher.setName(sc.next());
        System.out.println("请输入年龄:");
        teacher.setAge(sc.next());
        System.out.println("请输入生日:");
        teacher.setBirthday(sc.next());
        System.out.println("请输入地址:");
        teacher.setAddress(sc.next());
        return teacher;
    }

}

